package cn.edu.wynu.service.impl;

import cn.edu.wynu.mapper.StudentMapper;
import cn.edu.wynu.pojo.Student;
import cn.edu.wynu.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentImpl implements StudentService {
    @Autowired
    StudentMapper mapper;
    @Override
    public Student queryStudentById(Integer id) {
        return mapper.queryStudentById(id);
    }

    @Override
    public Integer updateStudent(Student student) {
        return mapper.updateStudent(student);
    }

    @Override
    public Integer deleteStudentById(Integer id) {
        return mapper.deleteStudentById(id);
    }
}
